<?php foreach (json_decode($data, true) as $button): ?>
    <div class="boton-home-grande<?= ($button['buttons']['refresh'] == "Si" && $button['buttons']['cant'] > 0 ? '-bounce' : '') ?>">
        <?php if ($button['buttons']['refresh'] == "Si" && $button['buttons']['cant'] > 0): ?>
            <div class="counter" id="<?= $button['buttons']['counter_box'] ?>"><?= $button['buttons']['cant'] ?></div>
        <?php endif; ?>
        <a href="<?= WWW . $button['buttons']['url'] ?>">
            <img src="<?= WWW . IMAGES_URL ?>home_buttons/<?= $button['buttons']['icon'] ?>" />
        </a>
        <div><?= $button['buttons']['description'] ?></div>
    </div>
<?php endforeach; ?>